<?php
Doo::loadCore('db/DooModel');

class FrbFlatChambreresBase extends DooModel
{

  /**
   * @var int Max length is 11.
   */
  public $chr_id;

  /**
   * @var date
   */
  public $chr_datedeb;

  /**
   * @var date
   */
  public $chr_datefin;

  /**
   * @var varchar Max length is 120.
   */
  public $chr_loca;

  /**
   * @var int Max length is 11.
   */
  public $cha_id;

  /**
   * @var varchar Max length is 120.
   */
  public $chr_firstname;

  /**
   * @var varchar Max length is 20.
   */
  public $chr_daten;

  /**
   * @var text.
   */
  public $chr_lieun;

  /**
   * @var text.
   */
  public $chr_addr;

  /**
   * @var varchar Max length is 250.
   */
  public $chr_ville;

  /**
   * @var varchar Max length is 250.
   */
  public $chr_dept;

  /**
   * @var varchar Max length is 20.
   */
  public $chr_entree;

  public $_table = 'frbFlat_chambreres';
  public $_primarykey = 'chr_id';
  public $_fields = array('chr_id','chr_datedeb','chr_datefin','chr_loca','cha_id', 'chr_firstname', 'chr_daten', 'chr_lieun', 'chr_addr', 'chr_ville', 'chr_dept', 'chr_entree');

  public function getVRules() {
    return array(
                'chr_id' => array(
    array( 'integer' ),
    array( 'maxlength', 11 ),
    array( 'notnull' ),
    ),

                'chr_datedeb' => array(
    array( 'date' ),
    array( 'optional' ),
    ),

                'chr_datefin' => array(
    array( 'date' ),
    array( 'optional' ),
    ),

                'chr_loca' => array(
    array( 'maxlength', 120 ),
    array( 'optional' ),
    ),

                'cha_id' => array(
    array( 'integer' ),
    array( 'maxlength', 11 ),
    array( 'notnull' ),
    ),
                 'chr_firstname' => array(
    array( 'maxlength', 120 ),
    array( 'optional' ),
    ),
                 'chr_daten' => array(
    array( 'maxlength', 20 ),
    array( 'optional' ),
    ),
                 'chr_lieun' => array(
    array( 'optional' ),
    ),
                 'chr_addr' => array(
    array( 'optional' ),
    ),
                 'chr_ville' => array(
    array( 'maxlength', 250 ),
    array( 'optional' ),
    ),
                'chr_dept' => array(
    array( 'maxlength', 250 ),
    array( 'optional' ),
    ),

    'chr_entree' => array(
    array( 'maxlength', 20 ),
    array( 'optional' ),
    ),
    );
  }

}